import request from '@/utils/request'

// 查询体能科目训练登记列表
export function listFirefighterTrainingTable(query) {
  return request({
    url: '/system/FirefighterTrainingTable/list',
    method: 'get',
    params: query
  })
}

// 查询体能科目训练登记详细
export function getFirefighterTrainingTable(id) {
  return request({
    url: '/system/FirefighterTrainingTable/' + id,
    method: 'get'
  })
}

// 新增体能科目训练登记
export function addFirefighterTrainingTable(data) {
  return request({
    url: '/system/FirefighterTrainingTable',
    method: 'post',
    data: data
  })
}

// 修改体能科目训练登记
export function updateFirefighterTrainingTable(data) {
  return request({
    url: '/system/FirefighterTrainingTable',
    method: 'put',
    data: data
  })
}

// 删除体能科目训练登记
export function delFirefighterTrainingTable(id) {
  return request({
    url: '/system/FirefighterTrainingTable/' + id,
    method: 'delete'
  })
}

// 输入账号，获取人名
export function getFirefighterIdCard(idCardNumber) {
  return request({
    url: '/add/add/firefighterIdCard',
    method: 'post',
    data: {
      idCardNumber: idCardNumber
    }
  })
}

// 输入账号，获取人名及年龄
export function getNameAge(idCardNumber) {
  return request({
    url: '/ifmPost/ifmPost/dynamicInput',
    method: 'post',
    data: {
      idCardNumber: idCardNumber
    },
    header:{
      'Content-Type': 'application/json'
    }
  })
}
